<template>
<div style="height:100%;display: flex;flex-direction: column;">
    <el-row :span="2" >
      <div class="header_content">
        <div class="name">学生众包平台</div>
        <div class="peopleMessage">
          <el-dropdown>
          <span class="el-dropdown-link">
            管理员<i class="el-icon-arrow-down el-icon--right"></i>
           </span>
            <el-dropdown-menu slot="dropdown"
            class="peopleMessage"
            >
              <el-dropdown-item>退出登录</el-dropdown-item>

            </el-dropdown-menu >
          </el-dropdown>
        </div>
      </div>
    </el-row>
    <el-row style="flex: 1">
      <el-col :span="3" style="height: 100%">
        <div style="height: 100%">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
            <!-- <el-submenu index="1"> -->
              <!-- <template slot="title">
                <span>审核</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="1-1" @click="()=>{$router.push({name:'examine'})}">项目审核</el-menu-item>
                <el-menu-item index="1-2" @click="()=>{$router.push({name:'examine'})}">企业审核</el-menu-item>
              </el-menu-item-group>
            </el-submenu> -->
            <el-menu-item index="1">
              <span slot="title" @click="()=>{$router.push({name:'project-massage'})}">项目管理</span>
            </el-menu-item>
            <el-menu-item index="2">
              <span slot="title" @click="()=>{$router.push({name:'use-massage'})}">角色管理</span>
            </el-menu-item>
            <el-menu-item index="3">
              <span slot="title" @click="()=>{$router.push({name:'suggestions'})}">投诉建议</span>
            </el-menu-item>
          </el-menu>
        </div>
      </el-col>
      <el-col :span="20" >
        <el-scrollbar :native="false" :noresize="false" tag="section">
        <router-view>
      </router-view>
      </el-scrollbar>
      </el-col>
    </el-row>

  </div>
</template>

<script>
export default {
name:'rootIndex',
data(){
    return{

    }
},
 methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
}
</script>
<style lang="less" scoped>
  .header_content{
    height: 6vh;
    background-color: rgb(84,92,100);
    width: 100%;
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 0 10px;
    // margin-bottom: 10px;
  }
.peopleMessage{
  /*position: absolute;*/
  /*right: ;*/
}
.name{
  color: #dddddd;
  font-size: 24px;
  /*position: absolute;*/
  left: 13px;
}
/deep/ .el-dropdown{
  color: white;
  left: 0;
}
  /deep/ .el-menu{
    height: 100%;
    margin-right:10px;
  }
  /deep/ .el-submenu .el-menu-item{
    min-width: 0;
  }
</style>
